package com.storeroompda.dialogs;

import android.app.Dialog;
import android.content.Context;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.storeroompda.R;


//等待对话框
public class WaitDialog extends Dialog {
    private String tag = "WaitDialog";
    ImageView iv;
    TextView tv;
    private Context mContext;

    public WaitDialog(Context context, int theme) {
        super(context, theme);
        mContext = context;
        setContentView(R.layout.dialog_wait);
        iv = (ImageView) findViewById(R.id.iv);
        tv = (TextView) findViewById(R.id.tv);
        Glide.with(context).asGif().load(R.drawable.wait).diskCacheStrategy(DiskCacheStrategy.ALL).into(iv);
    }
}
